from typing import *
class Solution:
    def plusOne(self, digits: List[int]) -> List[int]:
        return [int(i) for i in str(int("".join(map(str, digits))) +1)]

print(Solution().plusOne([1,2,3,4]))


def test_a():
    assert Solution().plusOne([1,2,3,4]) == [1,2,3,5]
    assert Solution().plusOne([1,2,9,0, 9]) == [1,2,9,1,0]
